package org.demo.warehouse.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.demo.warehouse.common.pojo.Warehouse;
import org.demo.warehouse.common.pojo.WarehouseVo;
import org.demo.warehouse.mapper.WarehouseMapper;
import org.demo.warehouse.service.IWarehouseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zgc
 * @since 2021-12-16
 */
@Service
public class WarehouseServiceImpl extends ServiceImpl<WarehouseMapper, Warehouse> implements IWarehouseService {
    @Autowired
    private WarehouseMapper warehouseMapper;

    @Override
    public <E extends IPage<WarehouseVo>> E pageVo(E page, QueryWrapper<Warehouse> wrapper) {
        return warehouseMapper.selectPageVo(page, wrapper);
    }
}
